package ar.edu.utn.frba.disenio.application.model;

import java.util.ArrayList;
import java.util.List;
import ar.edu.utn.frba.disenio.model.Aerolinea;
import ar.edu.utn.frba.disenio.model.Lanchita;
import ar.edu.utn.frba.disenio.model.Oceanic;
import com.lanchita.AerolineaLanchita;
import com.oceanic.AerolineaOceanic;

public class RepositorioAerolineas {
	List<Aerolinea> aerolineas = new ArrayList<Aerolinea>();
	private static RepositorioAerolineas INSTANCE;
	
	protected RepositorioAerolineas(){
		this.aerolineas.add(new Oceanic(AerolineaOceanic.getInstance()));
		this.aerolineas.add(new Lanchita(AerolineaLanchita.getInstance()));
	}
	
	public static RepositorioAerolineas getInstance(){
		if(INSTANCE == null){
			INSTANCE = new RepositorioAerolineas();
		}
		return INSTANCE;
	}
	
	public List<Aerolinea> getAerolineas(){
		return this.aerolineas;
	}
	
}
